package com.itdachang.design.structural.proxy.statics;

/**
 * @author gcq
 * @Create 2022-02-11
 */
public class LiMingTikTokProxy implements MainTikTok{

    /**
     * 参数是一个接口，传递进来的是具体的实现类
     * LeiTikTok实现类
     */
    private MainTikTok mainTikTok;

    public LiMingTikTokProxy(MainTikTok mainTikTok) {
        this.mainTikTok = mainTikTok;
    }

    @Override
    public void tiktok() {
        System.out.println("渲染直播间");
        System.out.println("李明老师正在直播");
        mainTikTok.tiktok();
    }
}